﻿
using CPPEI.Coolzon.Service.UpdateService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Service
{
    /// <summary>
    /// 更新服务
    /// </summary>
    [ServiceContract]
    public interface IUpdateService
    {
        /// <summary>
        /// 根据本地的版本信息获取跟新计划
        /// </summary>
        /// <param name="localVersion"></param>
        /// <returns></returns>
        [OperationContract]
        UpdateSchedule GetUpdateSchedule(string appType,string appVersion);

        /// <summary>
        /// 根据计划版本更新文件
        /// </summary>
        /// <param name="appType"></param>
        /// <param name="scheduleMode"></param>
        /// <param name="scheduleVersion"></param>
        /// <param name="fileName"></param>
        /// <returns></returns>
        [OperationContract]
        UpdateResult UpdateFile(string appType, string scheduleMode, string scheduleVersion, string fileName);
    }
}
